package com.ai.service.made.impl;

import com.ai.common.constant.FunctionTypeConstants;
import com.ai.entity.made.CoalOutOffStationParameter;
import com.ai.mapper.made.CoalOutOffStationParameterMapper;
import com.ai.service.made.ICoalOutOffStationParameterService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jiaok
 * @since 2024-10-31
 */
@Service
public class CoalOutOffStationParameterServiceImpl extends ServiceImpl<CoalOutOffStationParameterMapper, CoalOutOffStationParameter> implements ICoalOutOffStationParameterService {

    @Override
    public List<CoalOutOffStationParameter> getOutOffStationList(Integer cameraFunctionId) {

        return this.list(new QueryWrapper<CoalOutOffStationParameter>().select("start_time","end_time","people_num","out_off_station_time")
                .eq("camera_function_id",cameraFunctionId)
                .eq("function_type", FunctionTypeConstants.REGULAR_POST_OFF));
    }
}
